package com.atmilan.quartz.model.entity.crmeb;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 商品主表
 * @author daigb
 * @date:  2022-05-07 14:37
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_store_product")
@ApiModel(value="StoreProduct对象", description="商品表")
public class StoreProduct implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "商品id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)")
    private Integer merId;

    @ApiModelProperty(value = "商品条码（一维码）")
    private String barCode;

    @ApiModelProperty(value = "商品名称")
    private String storeName;

    @ApiModelProperty(value = "状态（0：未上架，1：上架）")
    private Boolean isShow;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "图搜更新标识")
    private Boolean isTusou;

    @ApiModelProperty(value = "关键字")
    private String keyword;

    @ApiModelProperty(value = "同步关键字")
    private String syncKeyword;

    @ApiModelProperty(value = "分类id")
    private Integer cateId;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    @ApiModelProperty(value = "活动价格")
    private BigDecimal promotePrice;

    @ApiModelProperty(value = "会员价格")
    private BigDecimal vipPrice;

    @ApiModelProperty(value = "市场价")
    private BigDecimal otPrice;

    @ApiModelProperty(value = "商户成本价")
    private BigDecimal cost;

    @ApiModelProperty(value = "第三方推送的成本价")
    private BigDecimal sourceCost;

    @ApiModelProperty(value = "邮费")
    private BigDecimal postage;

    @ApiModelProperty(value = "是否包邮")
    private Boolean isPostage;

    @ApiModelProperty(value = "销量")
    private Integer sales;

    @ApiModelProperty(value = "不同供应商代码")
    private Integer isEurope;

    @ApiModelProperty(value = "是否新品")
    private Boolean isNew;

    @ApiModelProperty(value = "供应商id")
    private Integer suppliersId;

    @ApiModelProperty(value = "供应商名称")
    private String suppliersName;

    @ApiModelProperty(value = "获得积分")
    private BigDecimal giveIntegral;

    @ApiModelProperty(value = "是否单独分佣")
    private Boolean isSub;

    @ApiModelProperty(value = "运费模板ID")
    private Integer tempId;
    
    @ApiModelProperty(value = "规格 0单 1多")
    private Boolean specType;

    @ApiModelProperty(value = "品牌ID")
    private Integer brandId;

    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    @ApiModelProperty(value = "更新标识")
    private Boolean updateFlag;
    
    @ApiModelProperty(value = "是否可推送天猫")
    private Boolean tmall;

    @ApiModelProperty(value = "色号")
    private String colorCode;

    @ApiModelProperty(value = "季节代码")
    private String seasonCode;

    @ApiModelProperty(value = "标准商品id")
    private Integer normId;

    @ApiModelProperty(value = "汇率")
    private BigDecimal exchangeRate;

    @ApiModelProperty(value = "新旧程度（二手商品必填）")
    private String degree;

    @ApiModelProperty(value = "自建商品推送状态( 0未推送  1审核中  2已通过  3已拒绝)")
    private Integer selfPushStatus;

    @ApiModelProperty(value = "推送状态改变时间")
    private Date pushChangeTime;

    @ApiModelProperty(value = "供应商商品类型(1API接口  2表格导入  3商户自建转云仓)")
    private Integer commodityType;

    @ApiModelProperty(value = "自建转云仓标识")
    private Integer convertIsEurope;

    @ApiModelProperty(value = "是否删除")
    private Boolean isDel;
    
    @ApiModelProperty(value = "是否人工处理数据")
    private Boolean manualFlag;

    @ApiModelProperty(value = "最后推送时间")
    private Date lastPushTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    
    /******** 下属为冗余字段, 非原表数据 (不迁移, 防止过大改动) ********/
    @TableField(exist = false)
    @ApiModelProperty(value = "商品简介")
    private String storeInfo;
    
    @TableField(exist = false)
    @ApiModelProperty(value = "是否精品")
    private Boolean isBest;

    @TableField(exist = false)
    @ApiModelProperty(value = "推荐时间")
    private Date bestTime;
    
    @ApiModelProperty(value = "是否置顶(1 是 2 否)")
    @TableField(exist = false)
    private Integer isTop;

    @ApiModelProperty(value = "折扣")
    @TableField(exist = false)
    private String discount;

    @ApiModelProperty(value = "平台加价率")
    @TableField(exist = false)
    private BigDecimal platRatio;

    @ApiModelProperty(value = "商户加价率")
    @TableField(exist = false)
    private BigDecimal merRatio;

    @ApiModelProperty(value = "加价金额")
    @TableField(exist = false)
    private BigDecimal raisePrice;

    @ApiModelProperty(value = "首段物流")
    @TableField(exist = false)
    private BigDecimal firstPrice;

    @ApiModelProperty(value = "税费 + 二段物流费用")
    @TableField(exist = false)
    private BigDecimal taxAndSecondPrice;

    @ApiModelProperty(value = "加价方式 0：默认分类加价 3：商品加价率 4：原价折扣")
    @TableField(exist = false)
    private Integer markupType;

    @ApiModelProperty(value = "加价率/折扣")
    @TableField(exist = false)
    private BigDecimal priceChange;

    @ApiModelProperty(value = "推荐图")
    @TableField(exist = false)
    private String recommendImg;

    @ApiModelProperty(value = "上架时间")
    @TableField(exist = false)
    private Date shelfTime;

    @ApiModelProperty(value = "是否推荐 0否 1是")
    @TableField(exist = false)
    private Boolean isRecommend;

    @ApiModelProperty(value = "价格尾号")
    @TableField(exist = false)
    private Integer priceTailNumber;

    @ApiModelProperty(value = "一级服务商加价率")
    @TableField(exist = false)
    private BigDecimal firstAgentRatio;

    @ApiModelProperty(value = "一级服务商成本价")
    @TableField(exist = false)
    private BigDecimal firstAgentCost;

    @ApiModelProperty(value = "二级服务商加价率")
    @TableField(exist = false)
    private BigDecimal secondAgentRatio;

    @ApiModelProperty(value = "二级服务商成本价")
    @TableField(exist = false)
    private BigDecimal secondAgentCost;

    @TableField(exist = false)
    @ApiModelProperty(value = "商品图片")
    private String image;

    @TableField(exist = false)
    @ApiModelProperty(value = "轮播图")
    private String sliderImage;

    @TableField(exist = false)
    @ApiModelProperty(value = "单位")
    private String unitName;

    @TableField(exist = false)
    @ApiModelProperty(value = "成分")
    private String composition;

    @TableField(exist = false)
    @ApiModelProperty(value = "规格")
    private String dimension;

    @TableField(exist = false)
    @ApiModelProperty(value = "小视频")
    private String video;

    @TableField(exist = false)
    @ApiModelProperty(value = "官网实拍图")
    private String gwpp1;

    @TableField(exist = false)
    @ApiModelProperty(value = "官网模特图")
    private String gwmt1;

    @TableField(exist = false)
    @ApiModelProperty(value = "店拍实拍图")
    private String sp1;

    @TableField(exist = false)
    @ApiModelProperty(value = "自有实拍图")
    private String sp;

    @TableField(exist = false)
    @ApiModelProperty(value = "店拍模特图")
    private String mt1;

    @TableField(exist = false)
    @ApiModelProperty(value = "自有模特图")
    private String mt;

    @TableField(exist = false)
    @ApiModelProperty(value = "明星海报图")
    private String mx1;

    @TableField(exist = false)
    @ApiModelProperty(value = "自拍视频图")
    private String sp2;

    @TableField(exist = false)
    @ApiModelProperty(value = "店拍视频图")
    private String sp3;

    @TableField(exist = false)
    @ApiModelProperty(value = "重量")
    private BigDecimal weight;

    @TableField(exist = false)
    @ApiModelProperty(value = "产地")
    private String productionPlace;
    
}
